import request from '@/utils/request'

// 查询开药缴费列表
export function listKaiyao(query) {
  return request({
    url: '/fee/kaiyao/list',
    method: 'get',
    params: query
  })
}

// 查询开药缴费详细
export function getKaiyao(ID) {
  return request({
    url: '/fee/kaiyao/' + ID,
    method: 'get'
  })
}

// 新增开药缴费
export function addKaiyao(data) {
  return request({
    url: '/fee/kaiyao',
    method: 'post',
    data: data
  })
}

// 修改开药缴费
export function updateKaiyao(data) {
  return request({
    url: '/fee/kaiyao',
    method: 'put',
    data: data
  })
}

// 删除开药缴费
export function delKaiyao(ID) {
  return request({
    url: '/fee/kaiyao/' + ID,
    method: 'delete'
  })
}
